package com.lagou.filter;

import javax.servlet.ServletRequest;

public class WebRequestHolder {

    private static ThreadLocal<ServletRequest> REQUEST_THERAD_LOCAL = new ThreadLocal<ServletRequest>();

    public static ServletRequest request(){
        return REQUEST_THERAD_LOCAL.get();
    }

    static void setting(ServletRequest request){
        REQUEST_THERAD_LOCAL.set(request);
    }

    static void remove(){
        REQUEST_THERAD_LOCAL.remove();
    }

}
